const Grid = require("./ui/grid")

const PopuNumbers = require('./ui/popupnumbers')
const grid = new Grid($("#container"))
grid.build()
grid.layout()

const popuNumbers = new PopuNumbers($("#popupNumbers"))
grid.bindPopup(popuNumbers)


$("#check").on("click", e => {
	if(grid.check()) {
		alert("成功")
		grid.rebuild()
	}
})
$("#reset").on("click", e => {
	grid.reset()
})
$("#clear").on("click", e => {
	grid.clear()
})
$("#rebuild").on("click", e => {
	grid.rebuild()
})


